package com.panopset.db;

public abstract class DataObject {

    private final TableDescription<?> td;

    public DataObject(final TableDescription<?> tableDescription) {
        td = tableDescription;
    }

    public TableDescription<?> getTableDescription() {
        return td;
    }

    public static final long NOID = -1L;
    /**
     * id.
     */
    private long id = NOID;

    /**
     * @return id.
     */
    public long getId() {
        return id;
    }

    /**
     * @param newId
     *            id.
     */
    public void setId(final long newId) {
        id = newId;
    }
}
